<@admin.header title="汽车品牌新增列表">
<@common.validate/>
<script type="text/javascript">
$(document).ready(function(){
		$('#mainForm').validate();
    });
	
	
	function changeRange(){
		var v = $("#mainForm input[name=type]:checked").val();
		if(v=='0'){
			$("#select_li").hide(100);
			$("#idsLink").val("");
			$("#sel_url").val("");
		}else{
			$("#select_li").show(100);
		}
	}
</script>

</@admin.header>
<body>
    <div class="place">
        <span>位置：</span>
        <ul class="placeul">
            <li>
                <a href="${base}/right.do">首页</a>
            </li>
            <li>
                <a href="list.do">汽车品牌管理</a>
            </li>
            <li>
                <a href="">添加品牌</a>
            </li>
        </ul>
    </div>
	
	<form action="add.do" method="post" id="mainForm">
	    <div class="formbody">
	        <div class="formtitle">
	            <span>品牌信息</span>
	        </div>
	        <ul class="forminfo">
	        	<#if parent??>
	        	   <li>
	                <label class="field">
	                    上级品牌
	                </label>
	              <input name="name" type="text" disabled="true" class="dfinput" validate="{required:true}" value="${parent.name!''}"/><i>&nbsp;</i>
	                <input name="parent.id" type="hidden" value="${parent.id!''}"/><i>&nbsp;</i>
	            </li>
				</#if>
	            <li>
	                <label class="field">
	                  品牌名称
	                </label>
	                <input name="name" type="text" validate="{required:true}" class="dfinput" /><i>&nbsp;</i>
	            </li>
				<li>
	                <label class="field">
	                    排序
	                </label>
	                <input name="sort" type="text" class="dfinput" value="0" validate="{required:true}"/><i>越大越靠前</i>
	            </li>
				<#if !parent??>
				<li>
	                <label class="field">
	                    	首字母
	                </label>
	                <input name="firstLetter" type="text" class="dfinput" validate="{required:true}"/>
	            </li>
				</#if>
	            <li>
	                <label class="field">
	                    是否显示在首页
	                </label>
	                <cite>
	                    &nbsp;&nbsp;&nbsp;<input name="publicSelect" type="radio" value="1" />是&nbsp;&nbsp;&nbsp;&nbsp;<input name="publicSelect" type="radio" value="0" checked="checked"/>否
	                </cite>
	            </li>
	            <li>
	                <label class="field">
	                    &nbsp;
	                </label>
	                <input type="submit" class="btn" value="确认保存"/>
	            </li>
	        </ul>
	    </div>
	</form>
</body>
</html>